module.exports = function (sequelize, DataTypes) {
    let infoType = sequelize.define(
        'info_type', {
            info_type_id: {
                type: DataTypes.INTEGER(11),
                allowNull: false,
                autoIncrement: true,
                primaryKey: true
            },
            info_type_name: {
                type: DataTypes.STRING,
                allowNull: true
            },
            creator: {
                type: DataTypes.STRING,
                allowNull: true
            },
            creat_time: {
                type: DataTypes.DATE,
                allowNull: true
            },
            updator: {
                type: DataTypes.STRING,
                allowNull: true
            },
            update_time: {
                type: DataTypes.DATE,
                allowNull: true
            },
            status: {
                type: DataTypes.INTEGER(1),
                allowNull: false
            },
            /*
            INTEGER: {
                type: DataTypes.INTEGER(11),
                allowNull: false
            },
            DATE: {
                type: DataTypes.DATE,
                allowNull: true
            },
            STRING: {
                type: DataTypes.STRING,
                allowNull: true
            },
            */
        },
        {
            tableName: 'info_type',
            timestamps: false
        }
    );

    return infoType;
};

